#! /bin/sh

name=util-vinix
skip_pkg_check=yes
version=0.0git
revision=1
source_dir="util-vinix"
hostdeps="gcc v"
deps="core-libs"

build() {
    cp -rp "${source_dir}"/. ./

    make -j1 \
        PROD="$PROD" \
        CC=${OS_TRIPLET}-gcc \
        VFLAGS="-os vinix -gc none" \
        CFLAGS="$TARGET_CFLAGS" \
        LDFLAGS="$TARGET_LDFLAGS"
}

package() {
    make install PREFIX="${prefix}" DESTDIR="${dest_dir}"

    post_package_strip
}
